package com.weilai.domain;

import java.time.LocalDateTime;

public class User {
    private Integer id;
    private String username;
    private String email;
    private String password;
    private String gender;
    private String role;
    private String avatar;
    private String status;
    private String bio;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private Integer followerCount;
    private Integer subscription;
    private String location;
    private String shortBio;
    private String industry;
    private  Boolean isFollowing;



    public Boolean getFollowing() {
        return isFollowing;
    }

    public void setFollowing(Boolean following) {
        isFollowing = following;
    }



    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    // 无参构造函数
    public User() {
    }

    // 全参构造函数
    public User(Integer id, String username, String email, String gender, String avatar, LocalDateTime createdAt, String password, String role, String status, String bio, LocalDateTime updatedAt, Integer subscription, Integer followerCount, String location, String shortBio, String industry) {
        this.id = id;
        this.username = username;
        this.email = email;
        this.gender = gender;
        this.avatar = avatar;
        this.createdAt = createdAt;
        this.password = password;
        this.role = role;
        this.status = status;
        this.bio = bio;
        this.updatedAt = updatedAt;
        this.subscription = subscription;
        this.followerCount = followerCount;
        this.location = location;
        this.shortBio = shortBio;
        this.industry = industry;
    }


    // Getter和Setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getBio() {
        return bio;
    }

    public void setBio(String bio) {
        this.bio = bio;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Integer getFollowerCount() {
        return followerCount;
    }

    public void setFollowerCount(Integer followerCount) {
        this.followerCount = followerCount;
    }

    public Integer getSubscription() {
        return subscription;
    }

    public void setSubscription(Integer subscription) {
        this.subscription = subscription;
    }

    public String getShortBio() {
        return shortBio;
    }

    public void setShortBio(String shortBio) {
        this.shortBio = shortBio;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", gender='" + gender + '\'' +
                ", role='" + role + '\'' +
                ", avatar='" + avatar + '\'' +
                ", status='" + status + '\'' +
                ", bio='" + bio + '\'' +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                ", followerCount=" + followerCount +
                ", subscription=" + subscription +
                ", location='" + location + '\'' +
                ", shortBio='" + shortBio + '\'' +
                ", industry='" + industry + '\'' +
                '}';
    }
}
